from django.contrib import admin
from systaam.models import User, Spider, XinLanSpider

# Register your models here.


class UserAdmin(admin.ModelAdmin):
    list_display = ['username', 'sex', 'phone', 'email']
    list_per_page = 15


class SpiderAdmin(admin.ModelAdmin):
    list_display = ["name", 'hear']


class XinLanSpiderAdmin(admin.ModelAdmin):
    list_display = ["user", 'name', 'author', 'good', 'spider']


admin.site.register(User, UserAdmin)
admin.site.register(Spider, SpiderAdmin)
admin.site.register(XinLanSpider, XinLanSpiderAdmin)